﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Data;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using FineUI;


namespace FineUI.Examples
{
    public partial class table_teacher : System.Web.UI.Page
    {
        public DataSet BindGrid()
        {
            Maticsoft.BLL.Teacher TC = new Maticsoft.BLL.Teacher();
            DataSet RtDate = TC.GetAllList();
            //教学班没有排课

            DataView view1 = RtDate.Tables[0].DefaultView;
            Grid1.DataSource = view1;
            Grid1.DataBind();
            return RtDate;


        }
        protected void Page_Load(object sender, EventArgs e)
        {
            BindGrid();
        }

        protected void Grid1_PageIndexChange(object sender, GridPageEventArgs e)
        {
            Grid1.PageIndex = e.NewPageIndex;
            DataBind();
        }
    }
}